/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import org.junit.platform.commons.util.StringUtils;

/**
 * <p>Project: javase - Demo
 * <p>Powered by webrx On 2021-12-27 17:23:09
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo {
    @ParameterizedTest
    @ValueSource(strings = {"one", "two", "three"})
    @DisplayName("参数化测试1")
    public void parameterizedTest1(String string) {
        System.out.println(string);
        Assertions.assertTrue(StringUtils.isNotBlank(string));
    }

    @ParameterizedTest
    @ValueSource(ints = 6)
    @DisplayName("参数化测试2")
    public void parameterizedTest1(int i) {
        System.out.println(i);
        Assertions.assertEquals(i * i, 38);
    }

}
